<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BookType extends Model
{

    protected $table = 'booktype';

    public function books(){

        return $this->hasMany(Book::class,'type','id');

    }


}
